class Calculator
	{
	public int add(int a, int b)
		{
		return a+b;
		}
	public float add(float a, float b)
		{
		return ((float)a+b);
		}
	public double add(double a, double b)
		{
		return a+b;
		}
	public double areaOfARectangle(double length, double breadth)
		{
		return length*breadth; 
		}
	public double areaOfACircle(double r)
		{
		return 3.14286*r*r;
		}
	public int[] fibonacciSeries(int n)
		{
		int f=0,s=1,nt;
		int[] a = new int[n];
		a[0] = f;
		a[1] = s;
		for(int i=2;i<n;i++)
			{
			nt=f+s;
			a[i] = nt;
			f=s;
			s=nt;
			}
		return a;
		}
	public int binarySearch(int[] a, int n)
		{
		int f=0,l=a.length-1, pos=-1,m;
		while(f<l)
			{
			m=(f+l)/2;
			if (a[m]==n)
				{
				pos=m+1;
				break;
				}
			else if(a[m]<n)
				f=m+1;
			else
				l=m-1;
			}
		return pos;
		}
	public int linearSearch(int[] a, int n)
		{
		int pos=-1;
		for(int i=0; i<a.length; i++)
			{
			if(a[i]==n)
				{
				pos=i+1;
				break;
				}
			}
		return pos;
		}
	}